home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / filesy~1 / mfs6011s.zoo / fsck / fsck.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-31  |  1.2 KB  |  41 lines

  1. #define NSIZE    10    /* Size of big inode cache in blocks */
  2.  
  3.  
  4. /* Inode status structure */
  5.  
  6. typedef struct
  7. {
  8.     unsigned short flag;
  9.             /* Flags or'ed together */
  10. #define I_FREE    0x01    /* Inode free */
  11. #define I_DIR    0x02    /* Is a directory */
  12. #define I_FDD    0x04    /* Fix '..' inode silently */
  13. #define I_D    0x08    /* '.' present */
  14. #define I_DD    0x10    /* '..' present */
  15. #define I_FOUND 0x20    /* Has a parent */
  16. #define I_LINK    0x40    /* Dir has a dir hard link in it */
  17. #define I_FIXDD    0x80    /* Prompt for fixing '..' */
  18. #define I_EMP    0x100    /* Dir contains free slots */
  19. #define I_ZAP    0x200    /* Inode about to be cleared */
  20.     long     links;    /* Number of links to this inode */
  21.     unsigned short parent;  /* Inode of parent (from '..')*/
  22. } inode_stat;
  23.  
  24. /* Structure for multiply allocated blocks */
  25.  
  26. typedef struct zlst
  27. {
  28.     zone_nr zone;            /* zones */
  29.     unsigned inum;            /* inode zone found on */
  30.         unsigned flag; /* Status flag */
  31. #define FOUND   0x1
  32. #define REMOVE  0x2
  33. #define IGNORE  0x4
  34.     long    mod;            /* Modified time of zone */
  35.     struct zlst *next;        /* Pointer to next entry */
  36. } zlist;
  37.  
  38. static zlist *fzlist,*lzlist;        /* Pointer to first and last entry */
  39.  
  40.  
  41.